package com.ms.game.slot.base;

import java.math.BigDecimal;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ms.game.common.container.BasicSettingServerBinUtil;

public class SlotBasicRookiePourWaterInfo {
private static final Log log = LogFactory.getLog(SlotBasicRookiePourWaterInfo.class);
	
	public static final String NONE = "NONE";
	
	public static final String OPEN = "OPEN";
	
	public static final String CLOSE = "CLOSE";
	
	public static long WATER_POURSART=0;
	/**
	 * 吐水是否強制關閉
	 */
	public boolean isFroceClose = false;
	
	protected String pourstate;

	protected BigDecimal pourtotal;
	
	protected BigDecimal pourOverMoney =BigDecimal.ZERO;

	public boolean isFroceClose() {
		return isFroceClose;
	}

	public void setFroceClose(boolean isFroceClose) {
		this.isFroceClose = isFroceClose;
	}

	public String getPourstate() {
		return pourstate;
	}

	public void setPourstate(String pourstate) {
		this.pourstate = pourstate;
	}

	public BigDecimal getPourtotal() {
		return pourtotal;
	}

	public void setPourtotal(BigDecimal pourtotal) {
		this.pourtotal = pourtotal;
	}

	public BigDecimal getPourOverMoney() {
		return pourOverMoney;
	}

	public void setPourOverMoney(BigDecimal pourOverMoney) {
		this.pourOverMoney = pourOverMoney;
	}
	
	/**
	 * 是否為菜鳥
	 * @param betinfo
	 * @return
	 */
	public static boolean isRookie(SlotBetInfo betinfo)
	{
		int playerlv = betinfo.player.getLevel();
		return (playerlv < BasicSettingServerBinUtil.getRookieLV())? true:false;
	}
	
	
}
